package com.im.service.docManage.smo;


import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.im.service.docReview.dao.IDocReviewOperDAO;
import com.im.service.docReview.dao.IDocReviewQueryDAO;
import com.im.service.dto.TenderInfo;
import com.im.service.tenderInfo.dao.ITenderInfoQueryDAO;
import com.im.util.ListUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.im.service.docManage.dao.IDocManageQueryDAO;
import com.im.service.dto.DocManage;

@Service
public class DocManageQuerySMOImpl implements IDocManageQuerySMO {

	@Autowired
	private IDocManageQueryDAO docManageQueryDAO;
	@Autowired
	private ITenderInfoQueryDAO tenderInfoQueryDAO;
	@Autowired
	private IDocReviewQueryDAO docReviewQueryDAO;

	@Override
	public DocManage queryDocManageById(String id) {
		return docManageQueryDAO.queryDocManageById(id);
	}

	
	@Override
	public List<DocManage> queryDocManageList(Map<String,Object> inMap) {
		return docManageQueryDAO.queryDocManageList(inMap);
	}

	/**
	 * 根据采购计划查  招标文件名称
	 * @throws Exception
	 */
	@Override
	public List<DocManage> queryDocManageByMap(Map<String,Object> inMap) throws Exception {

		List<DocManage> list = new ArrayList<DocManage>();
		DocManage docManage = docReviewQueryDAO.queryDocManageByPurchPlanId(inMap);

		// 查询 招标信息
		if(docManage != null){
			list.add(docManage);
		}
		return list;
	}
}
